#pragma once 
#include<iostream>
#include<opencv2/opencv.hpp>
#include"ArmorPatten.hpp"
#include"Draw_Contours.hpp"
#include<vector>

using namespace std;
using namespace cv;

class Lightbar{
public:

    double ratio;
    double height,width;
    Point2f topPoint,bottomPoint,midPoint;
    double angle,error_angle;
    Point2f top2bottom;
    // vector<Point2f>t2bPoint;
    vector<Point2f>corners; 
    ArmorPatten::Color color = ArmorPatten::Color::black;
    
    Lightbar() : ratio(0),height(0),width(0),topPoint(0),bottomPoint(0){};

    Lightbar(const RotatedRect &rectangle);

    // 判断灯条
    bool lightbar_decide();
    
    
};


